import _thread
import time

def fun1():
    print('开始运行fun1')
    time.sleep(4)
    print('运行fun1结束')

def fun2():
    print('开始运行fun2')
    time.sleep(3)
    print('运行fun2结束')

if __name__ == "__main__":
    print('开始运行')
    t1 = _thread.start_new_thread(fun1,())
    t2 = _thread.start_new_thread(fun2,())
    time.sleep(8)